package com.boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "sys_permissions")
public class Permission implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    @TableField(value = "permission")
    private String permission; //权限标识 程序中判断使用,如"user:create"
    @TableField(value = "description")
    private String description; //权限描述,UI界面显示使用
    @TableField(value = "available")
    private Boolean available = Boolean.FALSE; //是否可用,如果不可用将不会添加给用户



}
